<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>01_定位</title>
    <style>
        .outer {
            width: 500px;
            background-color: aqua;
            border: 2px  solid  black;
            padding: 10px;
        }
        .box {
            width: 150px;
            height: 150px;
            font-size: 20px;
        }
        .box1 {
            background-color: yellow;
        }
        .box2 {
            background-color: plum;
            position: relative;
            left: 100px;
            /* 离左边位置100，往右100 支持负数 */
        }
        .box3 {
            background-color: salmon;
            position: relative;
            top: -10px;
            /* 优先级 谁后写谁优先级高  */
        }
    </style>
</head>
<body>
    <div class="outer">
        <div class="box box1">1</div>
        <div class="box box2">2</div>
        <div class="box box3">3</div>
    </div>
</body>
</html>